import { Modal } from 'ant-design-vue';
import { createVNode } from 'vue'
const confirm = {
  class: 'msg-ant-modal',
  title: 'This is a notifcreateVNodeicationmessage',
  content: 'This is a notification messageThis is a notification messageThis is a notification message',
  centered: true,

  icon:'',
  // style: {
  //   "font-size": "24px",
  //   "line-height": "24px",
  //   color: "#FAAD14FF",
  //   position: "absolute",

  // },
  cancelText: '取消',
  okText: '确认',
  onOk() {
    console.log('ok');
  },
  onCancel() {
    Modal.destroyAll();
  },
};

const msgModal = {
  confirm
}
export default msgModal


//用法示例：
// import { Modal } from 'ant-design-vue';
// import msgModal from "@/components/modal/MsGModal"
// Modal.confirm(Object.assign({},msgModal.confirm，{
// 		onOk() {  //重写回调
// 			console.log('ok1');
// 		},
// 		onCancel() { //重写回调
// 			 console.log('ok2');
// 			 Modal.destroyAll();
// 		},
// })
